package kafka.Pojo;

import com.alibaba.fastjson.annotation.JSONField;

public class FileBeat {

    private String host; //主机信息

    private String message; //日志

    @JSONField(name = "@timestamp")
    private String timestamp; //时间戳

    @JSONField(name = "@metadata")
    private String metadata; //filebeat的input版本信息

    private  String agent; //filebeat客户端

    private String log; //读取的日志文件路径

    private String input; //读取日志的类型

    public FileBeat() {
    }

    public FileBeat(String host, String message, String timestamp, String metadata, String agent, String log, String input) {
        this.host = host;
        this.message = message;
        this.timestamp = timestamp;
        this.metadata = metadata;
        this.agent = agent;
        this.log = log;
        this.input = input;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getMetadata() {
        return metadata;
    }

    public void setMetadata(String metadata) {
        this.metadata = metadata;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    public String getInput() {
        return input;
    }

    public void setInput(String input) {
        this.input = input;
    }

    @Override
    public String toString() {
        return "FileBeat{" +
                "host='" + host + '\'' +
                ", message='" + message + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", metadata='" + metadata + '\'' +
                ", agent='" + agent + '\'' +
                ", log='" + log + '\'' +
                ", input='" + input + '\'' +
                '}';
    }
}
